{% if perms.dcim.change_cable %}
    {% if cable.status.name == 'Connected' %}
        <li>
            <a href="#" class="dropdown-item text-warning cable-toggle connected" data="{{ cable.pk }}">
                <span class="mdi mdi-lan-disconnect" aria-hidden="true"></span>
                Mark planned
            </a>
        </li>
    {% else %}
        <li>
            <a href="#" class="dropdown-item text-success cable-toggle" data="{{ cable.pk }}">
                <span class="mdi mdi-lan-connect" aria-hidden="true"></span>
                Mark installed
            </a>
        </li>
    {% endif %}
{% endif %}
{% if perms.dcim.delete_cable %}
    <li>
        <a href="{% url 'dcim:cable_delete' pk=cable.pk %}?return_url={{ request.path }}" class="dropdown-item text-danger">
            <span class="mdi mdi-ethernet-cable-off" aria-hidden="true"></span>
            Remove cable
        </a>
    </li>
{% endif %}
